﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<div class='loginbutton'>
    <%
        if (Request.IsAuthenticated)
        {
    %>
    <div style='vertical-align: top;'>
        <img style='border: solid 1px lightgrey;' width='32px;' src='<%=MySession.LoggedInTwitterUser.ProfileImageUrl %>'
            alt='<%= Html.AttributeEncode(MySession.LoggedInTwitterUser.ScreenName) %>' /><br />
        [
        <%= Html.ActionLink("Sign Out", "SignOut", "Account") %>
        ]</div>
    <%
        }
        else
        {
    %>
    <%
        if (!Request.IsAuthenticated)
        {
    %>
    <a href='/account/signin'>
        <img src='/Content/images/authenticate.png' /></a>
    <%} %>
    <%
        }
    %>
</div>
